package com._520it.wms.query;

import com._520it.wms.util.DateUtil;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
//入库操作
public class StockIncomeBillQueryObject extends QueryObject {
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startDate;//开始时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;//结束时间
    private Long depotId = -1L;//仓库id
    private int status = -1;//单据状态

    public Date getEndDate() {
        return DateUtil.getEnd(endDate);
    }

    public Date getStartDate() {
        return DateUtil.getStart(startDate  );
    }

}
